package bookstore.manager;

import bookstore.bound.order.OrderDisp;
import bookstore.bound.order.RecipientForm;
import bookstore.bound.order.ShoppingCart;
import bookstore.bound.order.StatItem;
import bookstore.model.Order;

import javax.servlet.http.HttpSession;
import java.util.List;
import java.util.Map;
import java.util.Set;

public interface OrderManager {

    Set<OrderDisp> getUserOrders(HttpSession session);

    Order generateOrder(HttpSession session, ShoppingCart shoppingCart);

    Map submitOrder(HttpSession session, RecipientForm recipientForm);

    Set<OrderDisp> getAllOrders();

    List<StatItem> getSaleStat();
}
